<template>
  <div>
    <!-- 给标签属性设置vue变量的值 -->
    <a :href="url">百度一下</a>

    <img :src="imgurl" alt="" />
  </div>
</template>
<script>
export default {
  data() {
    return {
      url: "https://www.baidu.com",
      imgurl: "https://cn.vuejs.org/images/logo.svg",
    };
  },
};
</script>
<style>
</style>
